const state = {
    locationArr: [],
    carPoint: []
}

const mutations = {
    ADD_TRACKS: (state, list) => {
        state.locationArr = list;
    },
    SET_CAR_COOR: (state, arr) => {
        state.carPoint = arr;
    }
}

const actions = {
    addTracks({ commit }, list) {
        commit('ADD_TRACKS', list)
    },
    setCarCoor({ commit }, arr) {
        commit('SET_CAR_COOR', arr)
    }
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}
